package com.ag.hmk.action;

import com.ag.common.BaseAction;
import com.ag.hmk.service.impl.GoodsServImpl;
/**
 * 
 * @author hmk
 * 删除物资
 */
public class DelGoodsAction extends BaseAction {


	private static final long serialVersionUID = 45432311L;
	
	private GoodsServImpl goodsServImpl;
	
	private String gID;  //物资ID
	private String delStr; //返回值，标志是否删除成功
	
	/*
	 * 删除物资
	 */
	public String delGood()throws Exception{
		try {
			goodsServImpl.delete(gID);
			this.setDelStr("1");
		} catch (Exception e) {
			e.printStackTrace();
			this.setDelStr("0");
		}
		
		return "delGoodOK";
	}

	public String getDelStr() {
		return delStr;
	}

	public void setDelStr(String delStr) {
		this.delStr = delStr;
	}

	public void setGoodsServImpl(GoodsServImpl goodsServImpl) {
		this.goodsServImpl = goodsServImpl;
	}

	public void setGID(String gid) {
		gID = gid;
	}

}
